import request from '../utils/request';

export const findsale = (data) => {
    return request({
        url: '/findsale',
        method: 'post',
        data:data,
    });
};

export const selectsale = () => {
    return request({
        url: '/sale',
        method: 'get',
    });
};

export const addsale = (data) => {
    return request({
        url: '/sale',
        method: 'post', 
        data:data , 
    });
};

export const updatesale = (data) => {
    return request({
        url: '/sale',
        method: 'put', 
        data:data , 
    });
};
export const deletesale = (data) => {
    return request({
        url: '/sale',
        method: 'delete', 
        data:data , 
    });
};

